package shared.network.messages;

import com.jme3.network.AbstractMessage;
import com.jme3.network.serializing.Serializable;

@Serializable
public class TextMessage extends AbstractMessage{

	private String topic;
	private String message;
	
	public TextMessage(){}
	public TextMessage(String topic, String message)
	{
		this.topic = topic;
		this.message = message;
	}
	
	@Override
	public String toString() {
		
		return topic + ": "+ message;
	}
	
}
